package com.sky.dto;

import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 商家新增参数
 */
@Data
public class MerchantDTO {
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 5, max = 20, message = "用户名长度必须在5-20个字符之间")
    private String username;
    
    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    private String password;
    
    @NotEmpty(message = "商家名称不能为空")
    private String name;
    
    @NotEmpty(message = "营业执照不能为空")
    private String businessLicense;
    
    @NotEmpty(message = "联系电话不能为空")
    private String contactNumber;
    
    @NotEmpty(message = "邮箱不能为空")
    private String email;
    
    private String address;
    private String location;
    private String contact;
    private String bankName;
    private String bankAccount;
    private String description; // 商家简介
    private Integer categoryId; // 商家分类ID
}